<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;" class="x_sorll">
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">TI费用反馈表</h2>
</div>
<div class="padding-10">
    <a href="{:url('exportview',['id'=>request()->param('id')])}" class="btn btn-info">导出Excel</a>
</div>
<!-- 标题 -->
<table class="table table-bordered text-center bud_hei" style="margin-bottom: 0">
    <tr>
        <td style="min-width: 120px;width: 120px">主题</td>
        <td colspan="3" class="text-left font-bold">{$data.title}</td>
        <td style="min-width: 120px;width: 120px">活动类型</td>
        <td class="text-left">{$data.cate_title2}反馈表</td>
    </tr>
    <tr>
        <td style="min-width: 120px;width: 120px">编号</td>
        <td class="text-left">{$data.no}</td>
        <td style="min-width: 120px;width: 120px">日期</td>
        <td class="text-left">{$data.created_on}</td>
        <td style="min-width: 120px;width: 120px">原申请编号:</td>
        <td class="text-left"><a {if $data.type_id==2} href="{:url('ti_apply/apply_de',['aid'=>$data.t2id])}" {else/} href="{:url('ti_apply2/view',['id'=>$data.t2id])}" {/if}>{$data.t2sn}</a></td>
    </tr>
    <tr>
        <td style="min-width: 120px;width: 120px">反馈人</td>
        <td class="text-left"><span style="color:blue">{$data.fankuiren}({$data.fankuirenjob})</span></td>
        <td style="min-width: 120px;width: 120px">所属部门:</td>
        <td class="text-left">{$data.fankuirenbm}</td>
        <td style="min-width: 120px;width: 120px">直属上级：</td>
        <td class="text-left">{$data.zhijieshangji}</td>
    </tr>
    <tr>
        <td style="min-width: 120px;width: 120px">活动策划内容：</td>
        <td class="text-left" colspan="5">{$data.brief}</td>
    </tr>
</table>
<table class="table table-striped table-bordered text-center bud_hei">
    <tr class="info">
       
        <td rowspan="2">序号</td>
        
        <td rowspan="2">原明细编号</td>
        <td rowspan="2">经销商</td>
        <td rowspan="2">品牌</td>
        <td rowspan="2">活动日期</td>
        <td rowspan="2">三级费用科目</td>
        <td rowspan="2">收款方</td>
        <td colspan="5">预计花费</td>
        <td colspan="5">实际花费</td>
        <td rowspan="2">预计销量(元)</td>
        <td rowspan="2">实际销量(元)</td>
        <td rowspan="2">销售<br/>达成率</td>
        <td rowspan="2">申请<br/>费用率</td>
        <td rowspan="2">实际<br/>费用率</td>
        <td rowspan="2">活动描述</td>
        <td rowspan="2">负责人</td>
    </tr>
    <tr class="info">
        <td>预计未税金额(元)</td>
        <td>是否增值税<br/>(可抵扣)</td>
        <td>税率</td>
        <td>预计含税金额(元)</td>
        <td>预计投入费用(元)</td>
        <td>实际未税金额(元)</td>
        <td>是否增值税<br/>(可抵扣)</td>
        <td>税率</td>
        <td>实际含税金额(元)</td>
        <td>实际投入费用(元)</td>
    </tr>
    {volist name="list" id="row" key="k"}
    <tr>
        
        <td>{$k}</td>
        
        <td><a {if $data.type_id==2} href="{:url('TiApply/dataview')}?did={$row.id}"{else} href="{:url('TiApply2/dataview')}?id={$row.id}"{/if} class="J_menuItem" title="{$data.t2sn}">{$data.t2sn}-{$row.sn}</a><a href="{:url('Commonti/decisionb')}?did={$row.id}"  class="J_menuItem"><span style="display: none;">决策信息</span><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true" style="display: inline-block;"></span></a></td>
        <td>{$data.jxs_title}<a href="{:url('Commonti/jxsyj')}?aid={$data.t2id}" class="J_menuItem"><span style="display: none;">经销商决策信息</span><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true"></span></a></td>
        <td>{$row.brand_title}</td>
        <td>从{:date('Y-m-d',$row.start)}至{:date('Y-m-d',$row.end)}</td>
        <td>{$row.feetype_title}</td>
        <td>{if $row.payee==1}(供应商){$row.gys_name}{else}(经销商){$row.jxs_title}{/if}</td>
        <td class="text-right">{$row.pizhunweishui}</td>
        <td>{if $row.isVAT==1}是{else}否{/if}</td>
        <td class="text-right">{$row.shuilv}%</td>
        <td class="text-right">{$row.pizhunhanshui}</td>
        <td class="text-right">{$row.yjsjtrfy}</td>
        <td class="text-right">{$row.fb_shijiweishui}</td>
        <td>{if $row.fb_isVAT==1}是{else}否{/if}</td>
        <td class="text-right">{$row.fb_shuilv}%</td>
        <td class="text-right">{$row.fb_hanshui}</td>
        <td class="text-right">{$row.fb_shijitourufeiyong}</td>
        <td class="text-right">{$row.totalExpectedSales}</td>
        <td class="text-right">{$row.fb_shijixiaoliang}</td>
        <td class="text-right">{$row.xsdcl}%</td>
        <td class="text-right">{$row.sqfyl}%</td>
        <td class="text-right colorRed">{$row.sjfyl}%</td>
        <td>{$row.brief}</td>
        <td>{$row.head}</td>
    </tr>
    {/volist}
    <tr class="font-bold trTotal1 text-right">
        <td colspan="7">合计：</td>
        <td>{$zj_yjws}</td>
        <td></td>
        <td></td>
        <td>{$zj_yjhs}</td>
        <td>{$zj_yjtr}</td>
        <td>{$zj_sjws}</td>
        <td></td>
        <td></td>
        <td>{$zj_sjhs}</td>
        <td>{$zj_sjtr}</td>
        <td>{$zj_yjxl}</td>
        <td>{$zj_sjxl}</td>
        <td>{$zj_xsdcl}%</td>
        <td>{$zj_sqfyl}%</td>
        <td>{$zj_sjfyl}%</td>
        <td colspan="2"></td>
    </tr>
    <tfoot>
        <tr>
            <td>备注：</td>
            <td colspan="24" class="text-left">{$data.fb_brief}</td>
        </tr>
    </tfoot>
</table>
<table class="table table-bordered text-left bud_hei">
            <tr class="info">
                <th class="text-left font-bold">审批意见</th>
            </tr>
            {volist name="logs" id="l"}
          <tr>
              <td>{$l.USERNAME} 审批动作：{$l.MEMO}；审批意见：{if $l.COMMENTS}{$l.COMMENTS}{else/}无{/if}(审批时间：{$l.ACTIONTIME})</td>
          </tr>
          
          {/volist}
      </table>
<!-- 全局js -->
{include file="Public/footer"}
<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
    $('.J_menuItem').on('click', menuItem);
</script>
</body>

</html>
